package com.shop.loan.controller;

import com.shop.loan.model.common.Constant;
import com.shop.loan.model.common.ResResultByCiWei;
import com.shop.loan.model.vo.CiWeiParamVo;
import com.shop.loan.service.CiWeiService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(Constant.apiPrefex + "/cw")
public class CwController {

    @Resource
    CiWeiService ciWeiService;


    @PostMapping("/login")
    public ResResultByCiWei contractQuery(CiWeiParamVo ciWeiParamVo) {
        return ciWeiService.login(ciWeiParamVo);
    }

}
